﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masterpage_user.master" AutoEventWireup="true" CodeFile="Myblog.aspx.cs" Inherits="Myblog" %>

<asp:Content ID="Content1" ContentPlaceHolderID="user_content" Runat="Server">
    <link rel="Stylesheet" type="text/css" href="Styles/blog.css" />
        <div class="title">Hãy viết gì đó để chia sẻ cho mọi người ^.^</div><hr /><hr />
        <div id="content">
        <a href="VietBai.aspx">Viết Bài</a>
            <br />
            <div>
            Các bài viết đã đăng .<br />
                <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" 
                    GridLines="None" DataKeyNames="Mabaiviet" AutoGenerateColumns="False" 
                    Width="800px" onrowdeleting="GridView1_RowDeleting" >
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:BoundField DataField="Mabaiviet" HeaderText="Mabaiviet" 
                            InsertVisible="False" ReadOnly="True" SortExpression="Mabaiviet" />
                        <asp:BoundField DataField="Ngaydang" HeaderText="Ngaydang" 
                            SortExpression="Ngaydang" />
                        <asp:TemplateField HeaderText="Tieude" SortExpression="Tieude">
                            <ItemTemplate>
                                <asp:HyperLink ID="HyperLink3" runat="server" 
                                    NavigateUrl='<%# "BaiViet.aspx?id="+Eval("Mabaiviet") %>' Text='<%# Eval("Tieude") %>'></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Quyenriengtu" HeaderText="Quyenriengtu" 
                            SortExpression="Quyenriengtu" />
                        <asp:CommandField ShowDeleteButton="True" />
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>
            </div>
        </div>
</asp:Content>

